package com.iyundao.io.Service.Impl;

import com.iyundao.io.Service.StatisticsService;
import com.iyundao.io.mapper.PartyMemberMapper;
import com.iyundao.io.model.PartyMember;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StatisticsServiceImpl implements StatisticsService {

    @Autowired
    private PartyMemberMapper partyMemberMapper;

    /**
     * 根据组织id，展示本组织下所有人员的信息
     * @param organizationid
     * 组织id
     * @return
     */
    @Override
    public List<PartyMember> selectByOrganizationId(Integer organizationid) {
        return partyMemberMapper.selectByOrganizationId(organizationid);
    }
}
